const Router = require('@Koa/router')

const ssrRouter = require('./ssr')

const router = new Router()

router.get('/', async (ctx) => {
  ctx.type = 'text/html; charset=utf-8'
  ctx.body = 'Vue SSR'
})

router.use('/ssr', ssrRouter.routes(), ssrRouter.allowedMethods())

module.exports = router